package com.c.service;


import com.c.model.PageResult;
import com.c.model.QueryPageBean;
import com.c.model.Result;
import com.c.pojo.Permission;

import java.util.List;

public interface PermissionService {
    //查询所有权限
    List<Permission> findAll();

    //权限分页查询
    PageResult findByPage(QueryPageBean queryPageBean);

    //新增权限
    Result add(Permission permission);

    //编辑权限
    void edit(Permission permission);

    //根据ID删除权限
    Result deleteById(Integer id);

    //根据ID查询权限
    Permission findById(Integer id);
}
